<?php

use yii\helpers\Html;
use backend\components\widget\adminLTE\ActiveForm;;

/* @var $this yii\web\View */
/* @var $model backend\models\AppModules */
/* @var $form yii\widgets\ActiveForm */
?>

<?php $form = ActiveForm::begin(); ?>
<div class="box-body">

    <?= $form->field($model, 'status')->radioList($model->statusTexts) ?>

    <?= $form->field($model, 'id')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'type')->dropDownList($model->typeTexts) ?>

    <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'class')->textInput(['maxlength' => true]) ?>

    <?= $form->field($model, 'config',['labelOptions'=>['tinytext'=>'请输入json字符串作为配置']])->textarea(['rows' => 5]) ?>

    <?//= $form->field($model, 'created_at')->textInput() ?>
</div>
<div class="box-footer">
    <div class="pull-right">
        <?= Html::submitButton('<i class="fa fa-save"></i> 保存', ['class' => 'btn btn-success']) ?>
    </div>
</div>
<?php ActiveForm::end(); ?>

